@import url("./commom.css");
*{margin: 0;padding: 0;list-style: none;}
body{
	height: 100vh;
	background: url(../images/虎.jpg) no-repeat 0 -100px;
	-webkit-background-size:cover;
	-moz-background-size: cover;
	-mo-background-size: cover;
	-o-background-size: cover;
	/* background: -webkit-linear-gradient(-60deg,rgba(0,0,0,.2),rgba(0,0,0,.5)); */
	/* border: ; */
}
header{
	width: 100%;
	color: #f2f2f2;
	font-size: 0.6rem;
	position: absolute;
	left: 50%;
	top: -1.8rem;
	transform: translateX(-50%);
	text-align: center;
}
header::after{
	content: '按下 S 键 可暂停呢';
	width: 100%;
	position: absolute;
	top: 0.8rem;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	font-size: 0.4rem;
	color: navajowhite;
}
.main{
	/* overflow: hidden; */
	width: 360px;
	height: 420px;
	/* background-color: rgba(0,0,255,); */
	/* background: #B7D4A8; */
	background: #262626;
	background-size: 50%;
	border-radius: 30px;
	border: 10px solid #333;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	box-shadow: 0 10px 10px 10px rgba(255,255,0,.2);
	font-size: 20px;
}
b{
	display: inline-block;
	width: 100%;
	color: #FFF;
	text-align: center;
	font-size: 20px;
}
img{
	width: 100%;
	height: 100%;
}
.content{
	position: relative;
	width: 320px;
	height: 320px;
	border: 2px solid gainsboro;
	margin:10px 20px 10px auto ;
}
.content .Snake_box .circle{
	border-right: 1px solid red;
	border-top: 1px solid red;
	transform: rotate(45deg);
	background: pink;
	
}
.content .Snake_box li{
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: white;
	/* margin-left: 1px; */
}
.food{
	width: 10px;
	display: flex;
	flex-wrap: wrap;
	position: absolute;
	left: 50px;
	top: 50%;
	
}
.food div{
	position: relative;
	width: 5px;
	height: 5px;	
	background-color: mediumvioletred;
	transform: rotate(45deg);
}
.food div::before,
.food div::after{
	content: '';
	position: absolute;
	width: 5px;
	height: 5px;
	background: mediumvioletred;
	border-radius: 50%;
}
.score_box{
	display: flex;
	justify-content: space-between;
	margin: 0 25px;
}
i{
	display: inline-block;
	color: #F2F2F2;
}
span{
	font-size: 20px;
	font-weight: 600;
	margin: 0 10px;
	color: #f2f2f2;
}
